import type { RouteRecordRaw } from "vue-router";
//任务定义查看详情
export const infoPage = () => import("@/views/jobs/job-define/info.vue");
//任务定义新增编辑
export const editInfoPage = () => import("@/views/jobs/job-define/edit.vue");
import { Layout } from "jmash-core";
const constantRoutes: RouteRecordRaw[] = [
  {
    path: "/jobs-info",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: "job-define/defineInfo",
        component: infoPage,
        name: "defineInfo",
        meta: {
          title: "查看详情",
          hidden: false,
          permCode: "jobs:job_define:view",
        },
      },
      {
        path: "job-define/editInfo",
        component: editInfoPage,
        name: "editInfo",
        meta: {
          title: "任务定义",
          hidden: false,
          permCode: "jobs:job_define:update",
        },
      },
    ],
  },
];
export default constantRoutes;
